package Day08;

public class InstanceofText {
    public static void main(String[] args) {
        Object hello = "Hello";
        System.out.println("字符串是否为Object类的对象" + (hello instanceof  Object));
        System.out.println("字符串是否为String类的实例" + (hello instanceof String));
        System.out.println("字符串是否为Math类的实例" + (hello instanceof Math));
        System.out.println("字符串是否为Comparable类的实例"+ (hello instanceof Comparable));
        String a = "Helllo";
        /*System.out.println("字符串是否为Math类的实例" + (a instanceof Math));*/
    }
}
